<?php
include "../class/cart.class.php";
session_start();
$cart = $_SESSION['cart'];
if ($cart->clear()) {
    echo 'del ok!';
} else {
    echo 'del failed!';
}
header("location: ../index.php");